﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="on.aspx.cs" Inherits="orgman_pro_on" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>浏览再评项目内容</title>
    <link href="../../sys/style/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="content">
            
            
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                    SelectCommand="SELECT [projectname], [creator], [projectid] FROM [project] WHERE (([organizationid] = @organizationid) AND ([state] = @state))">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                        Type="Int32" />
                    <asp:Parameter DefaultValue="在评的" Name="state" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="SqlDataSource1" DataKeyNames="projectid"  AllowPaging="True" PageSize="5" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                            SortExpression="projectname" />
                        <asp:BoundField DataField="creator" HeaderText="创建者" SortExpression="creator" />
                        <asp:CommandField SelectText="&lt;font color='red'&gt;选择&lt;/font&gt;" 
                            ShowSelectButton="True" />
                    </Columns>
                </asp:GridView>
            <hr />
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                    SelectCommand="SELECT [projectid], [projectname], [creator], [createdtime], [modelid], [methodid], [groupid], [starttime], [endtime], [description], [state], [organizationid] FROM [project] WHERE ([projectid] = @projectid)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="GridView1" Name="projectid" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="100%" 
                    AutoGenerateRows="False" BackColor="White" BorderColor="#3366CC" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                    DataSourceID="SqlDataSource2">
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <Fields>
                        <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                            SortExpression="projectname" />
                        <asp:BoundField DataField="createdtime" HeaderText="创建时间" 
                            SortExpression="createdtime" />
                        <asp:HyperLinkField DataNavigateUrlFields="methodid" 
                            DataNavigateUrlFormatString="../mothods/methodinfo.aspx?mothodid={0}" 
                            DataTextField="methodid" HeaderText="使用的方法（点击查看）" />
                        <asp:HyperLinkField DataNavigateUrlFields="modelid" 
                            DataNavigateUrlFormatString="../models/modelinfo.aspx?modelid={0}" DataTextField="modelid" 
                            HeaderText="使用的模型（点击查看）" />
                        <asp:BoundField DataField="starttime" HeaderText="开始时间" 
                            SortExpression="starttime" />
                        <asp:BoundField DataField="endtime" HeaderText="结束时间" 
                            SortExpression="endtime" />
                        <asp:BoundField DataField="description" HeaderText="项目描述" 
                            SortExpression="description" />
                    </Fields>
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                    <EditRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                </asp:DetailsView>
           
            
        </div>
    
    </div>
    </form>
</body>
</html>
